package com.yssoft.entity.core;

import com.yssoft.entity.CommonEntity;

import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 半成品实体类
 * t_semi_finished_goods
 * @author 
 */
@Table(name = "t_semi_finished_goods")
public class TSemiFinishedGoods extends CommonEntity {
    /**
     * 主键
     */
    @Id
    private Integer id;

    /**
     * 企业信息_主键
     */
    private Integer t_e_id;

    /**
     * 名称
     */
    private String name;

    /**
     * 编号
     */
    private String code;

    /**
     * 规格
     */
    private String specifications;

    /**
     * 有效期天数
     */
    private String expiry_date;


    /**
     * 生产厂家
     */
    private String manufacturer;

    /**
     * 生产许可编号
     */
    private String p_license;

    /**
     * 执行标准
     */
    private String perf_standard;

    /**
     * 单件重量
     */
    private String single_weight;

    /**
     * 单件体积
     */
    private String single_volume;
    
    /**
     * 产品类别
     */
    private Integer t_p_id;
    
    /** 单件容量*/
    private String single_capacity;
    
    private String unit;

    private static final long serialVersionUID = 1L;

    public String getUnit() {
		return unit;
	}

	public void setUnit(String unit) {
		this.unit = unit;
	}

	public Integer getId() {
        return id;
    }

	public void setId(Integer id) {
        this.id = id;
    }

    public Integer getT_e_id() {
        return t_e_id;
    }

    public void setT_e_id(Integer t_e_id) {
        this.t_e_id = t_e_id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }


    public String getSpecifications() {
        return specifications;
    }

    public void setSpecifications(String specifications) {
        this.specifications = specifications;
    }

    public Integer getT_p_id() {
		return t_p_id;
	}

	public void setT_p_id(Integer t_p_id) {
		this.t_p_id = t_p_id;
	}

	public String getExpiry_date() {
        return expiry_date;
    }

    public void setExpiry_date(String expiry_date) {
        this.expiry_date = expiry_date;
    }


    public String getManufacturer() {
        return manufacturer;
    }

    public void setManufacturer(String manufacturer) {
        this.manufacturer = manufacturer;
    }

    public String getP_license() {
        return p_license;
    }

    public void setP_license(String p_license) {
        this.p_license = p_license;
    }

    public String getPerf_standard() {
        return perf_standard;
    }

    public void setPerf_standard(String perf_standard) {
        this.perf_standard = perf_standard;
    }

    public String getSingle_weight() {
        return single_weight;
    }

    public void setSingle_weight(String single_weight) {
        this.single_weight = single_weight;
    }


    public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getSingle_volume() {
		return single_volume;
	}

	public void setSingle_volume(String single_volume) {
		this.single_volume = single_volume;
	}

	

	public String getSingle_capacity() {
		return single_capacity;
	}

	public void setSingle_capacity(String single_capacity) {
		this.single_capacity = single_capacity;
	}

	@Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        TSemiFinishedGoods other = (TSemiFinishedGoods) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getT_e_id() == null ? other.getT_e_id() == null : this.getT_e_id().equals(other.getT_e_id()))
            && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
            && (this.getSpecifications() == null ? other.getSpecifications() == null : this.getSpecifications().equals(other.getSpecifications()))
            && (this.getExpiry_date() == null ? other.getExpiry_date() == null : this.getExpiry_date().equals(other.getExpiry_date()))
            && (this.getManufacturer() == null ? other.getManufacturer() == null : this.getManufacturer().equals(other.getManufacturer()))
            && (this.getP_license() == null ? other.getP_license() == null : this.getP_license().equals(other.getP_license()))
            && (this.getPerf_standard() == null ? other.getPerf_standard() == null : this.getPerf_standard().equals(other.getPerf_standard()))
            && (this.getSingle_weight() == null ? other.getSingle_weight() == null : this.getSingle_weight().equals(other.getSingle_weight()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getT_e_id() == null) ? 0 : getT_e_id().hashCode());
        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
        result = prime * result + ((getSpecifications() == null) ? 0 : getSpecifications().hashCode());
        result = prime * result + ((getExpiry_date() == null) ? 0 : getExpiry_date().hashCode());
        result = prime * result + ((getManufacturer() == null) ? 0 : getManufacturer().hashCode());
        result = prime * result + ((getP_license() == null) ? 0 : getP_license().hashCode());
        result = prime * result + ((getPerf_standard() == null) ? 0 : getPerf_standard().hashCode());
        result = prime * result + ((getSingle_weight() == null) ? 0 : getSingle_weight().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", t_e_id=").append(t_e_id);
        sb.append(", name=").append(name);
        sb.append(", specifications=").append(specifications);
        sb.append(", expiry_date=").append(expiry_date);
        sb.append(", manufacturer=").append(manufacturer);
        sb.append(", p_license=").append(p_license);
        sb.append(", perf_standard=").append(perf_standard);
        sb.append(", single_weight=").append(single_weight);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}